import { defineStore } from 'pinia';
interface LoginBasicState {
  /** 是否展示登录model */
  showLogin: boolean;
}
export const useLoginBasicStore = defineStore({
  id: 'LoginBasicStore',
  state: (): LoginBasicState => ({
    showLogin: true,
  }),
  actions: {
    /**
     * 改变是否显示登录块
     * @param value true展示登录false展示注册
     */
    changeShowLogin(value: boolean): void {
      this.showLogin = value;
    },
  },
});
